<template>
  <div id="scroll-board">
    <div class="scroll-title">耗电前十单位</div>
    <div class="kkkk">
      <dv-capsule-chart :config="config" />
    </div>
    
  </div>
</template>

<script>
export default {
  name: 'ScrollBoard',
  data () {
    return {
      config: {
        data:[
          {
            name: 'AB公司',
            value: 321
          },
          {
            name: 'AC公司',
            value: 423
          },
          {
            name: 'BC公司',
            value: 356
          },
          {
            name: 'CD公司',
            value: 301
          },
          {
            name: 'AE公司',
            value: 388
          },
          {
            name: 'BF公司',
            value: 402
          },
          {
            name: 'YH公司',
            value: 456
          },
          {
            name: 'EF公司',
            value: 500
          },
          {
            name: 'FG公司',
            value: 486
          },
          {
            name: 'TF公司',
            value: 398
          }
        ],
        unit : 'Kw'
      }
    }
  }
}
</script>

<style lang="less">
#scroll-board {
  width: 30%;
  box-sizing: border-box;
  margin-left: 20px;
  height: 100%;
  overflow: hidden;
  background-color: rgba(6, 30, 93, 0.5);
  border-top: 2px solid rgba(1, 153, 209, .5);
  flex : 1;
  .kkkk{
    padding-top: 40px;
    padding-left: 10px;
    box-sizing: border-box;    
  }
  .scroll-title{
    height: 50px;
    font-weight: bold;
    text-indent: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
  }

  .dv-capsule-chart{
    flex : 1;
  }
}
</style>
